package hu.issue.framework.web.validation;

public abstract class NotRequiredValidator extends AbstractValidator {

	public NotRequiredValidator(final String parameterName, final String message) {
		super(parameterName, message);
	}

	@Override
	protected boolean validateValue(final String value) {
		if (value == null) {
			return true;
		}

		return validateValueInner(value);
	}

	protected abstract boolean validateValueInner(String value);
}
